<Location /mirrorlist>
RequestHeader set CP-Location /mirrormanager
</Location>

# static files
<Directory /srv/web/mirrors.fedoraproject.org>
    Options Indexes FollowSymLinks
    AllowOverride None
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Directory>

RewriteEngine On
# BEGIN hack for misconfigured Amazon EC2 clients	
RewriteCond %{QUERY_STRING} repo=epel-5&arch=\$basea\$
RewriteRule ^/mirrorlist - [F]
# END hack

RewriteRule ^/static/(.*) {{proxyurl}}/static/$1 [P,L]
RewriteRule ^/mirrorlist(.*) {{proxyurl}}/mirrorlist$1 [P,L]
RewriteRule ^/metalink(.*) {{proxyurl}}/metalink$1 [P,L]

RewriteRule ^/$ /publiclist/ [R,L]
RewriteRule ^/publiclist(.*) https://admin.fedoraproject.org/mirrormanager/ [R,L]

ProxyPassReverse /static {{proxyurl}}/static
ProxyPassReverse /mirrorlist {{proxyurl}}/mirrorlist
ProxyPassReverse /metalink {{proxyurl}}/metalink
